<?php
require_once(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'modules'
        											. DIRECTORY_SEPARATOR . 'cms'
        											. DIRECTORY_SEPARATOR . 'admin'
													. DIRECTORY_SEPARATOR . 'models'
													. DIRECTORY_SEPARATOR . 'Deal.php');
													
class Zend_View_Helper_RightModules {

    public $view;

    public function setView($view) {
        $this->view = $view;
    }

    public function rightModules($position) {
        $this->view->addScriptPath(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'modules'
                . DIRECTORY_SEPARATOR . 'cms'
                . DIRECTORY_SEPARATOR . 'admin'
                . DIRECTORY_SEPARATOR . 'views'
                . DIRECTORY_SEPARATOR . 'scripts'
                . DIRECTORY_SEPARATOR . 'rightmodules');

        $model = new Deal();
        $this->view->hotdeal = $model->getHotDeal(); 
        $this->view->placeholder($position)->captureStart();
        echo $this->view->render('hot_deal.phtml');
        echo $this->view->render('online_support.phtml');
        echo $this->view->render('hot_line.phtml');
        echo $this->view->render('deal_summary_info.phtml');
        $this->view->placeholder($position)->captureEnd();
        
        $this->view->articleViewModule($position, 5);
    } 
}